Use VIM to open a file for editing
```
$ VIM Protocols
```
-Enter '/icmp ' in normal mode to find the string ICMP
-Enter ' n ' in normal mode to find the next ICMP
-Input in normal mode '? TCP ' Looks up st
Reference:http://blog.chinaunix.net/uid-20732478-id-763411.htmlThe use of vim for so long, but has been unable to remember some basic operating instructions. Today when looking for a keyword, can't think of how to find "next", so Google and solve, by the way to paste the useful all over.Find directives:/xxx Down Search? XXX go upN Next: Set HLS Open Highlight: Set Nohls off highlightingHere is the find and replace, although I have not used this featur
The use of vim for so long, but has been unable to remember some basic operating instructions. Today when looking for a keyword, can't think of how to find "next", so Google and solve, by the way to paste the useful all over.Find directives:/xxx Down Search? XXX go upN Next: Set HLS Open Highlight: Set Nohls off highlightingHere is the find and replace, although I have not used this feature yet--Because there are so many online, I don't know who the o
zhanhailiang 日期:2014-12-17The default Vim lookup is to differentiate between uppercase and lowercase, and can be implemented in the following two ways ignoring uppercase and lowercase lookupsset ic?noignorecase1 instruction setting::set ic(ignorecase 的缩写) 忽略大写和小写:set noic(noignorecase 的缩写) 不忽略大写和小写Enter the above instructions, each time after the search is based on the current matching find, false assumptio
"folder" and "Folders".4, specify the number of repetitionsTo match a specific number of times for an item, use the form "\{n,m}". where "n" and "M" are numbers. The item in front of it will be repeated "n" to "M" Times (|inclusive| contains "n" and "M"). For example:/ab\{3,5}Match "abbb", "abbbb" and "abbbbb".When "n" is omitted, it is defaulted to zero. When "M" is omitted, the default is infinity. When ", M" is omitted, it means repeating exactly "n" Times. For example:Pattern Match times\{,
1./forward lookup,? Reverse Lookup2. \v activates very magic search mode, writing regular expressions closer to Perl regular expressions, most characters do not need to be escaped3. \v activates Noverymagic mode and searches by word literals.4./E, which appears at the end of the Find mode, indicates that the cursor moves to the end of the find result5./C, forced case-sensitive, \c, ignoring case6.\ and/, must be escaped in any mode7.\zs, highlighting
zhanhailiang 日期:2014-12-17The default Vim lookup is case-sensitive and can be implemented by ignoring case lookups in two ways:set ic?noignorecase1 instruction setting::set ic(ignorecase 的缩写) 忽略大小写:set noic(noignorecase 的缩写) 不忽略大小写Enter the instructions above and each time you find it, you can write it to the configuration file if you want to keep it active. VIMRCset ic2 Find Symbol settings:/\CREDIS_HOST 区
)
xv. Find and replace
Use the S command s#pattern#string#g/i in the last row mode to specify the line lookup replace R1,R2 s#pattern#string#g/i% for full text
16. How to edit multiple files using vim
Vim file1 file2 Display the first file last line mode by default: Next toggles the next file prev back to the previous file (you need to save the changes be
metacharacters after it are matched at the same position as the metacharacters before it. For example, "foo/(bar/)/@ =" matches Foo in the foolbar word but does not match fool. "Foo/(bar/)/@ = foo" does not match anything, because it requires matching Foo at the beginning of the B Letter of foobar, which is obviously impossible. "Foo/(bar/)/@ = ..." It matches foobar instead of foobbb. Why?
For the regular expression "
: Help // _ []
"/_ []" Matches the metacharacters and linefeeds in the set.
[Translation]
/Joe/E:Cursor set to end of Match
Position the cursor at the last letter of the matching word
/Joe/e + 1:Cursor set to end of match plus 1
Position the cursor at the next letter matching the last letter of the word
/Joe/S-2:Cursor set to start of match minus 2
Position the cursor in the position that matches the first letter of a word before two letters.
/Joe/+ 3:Find Joe move cursor 3 lines down
Search for JoeMove the cursor down 3Line
[Annotation]
: Help/
: Help?
We all
Category: The use of vim for so long, but has been unable to remember some basic operating instructions. Today when looking for a keyword, can't think of how to find "next", so Google and solve, by the way to paste the useful all over. Find instructions:/xxx down? XXX Top n Next: Set HLS Open highlight: Set Nohls off highlight below is the find replacement, although I have not used this feature--because there are too many online, so I don't know who t
September 08 Admission, July 12 graduation, ended my happy and rich university life in the Software Institute. This series is a review of the four-year professional curriculum study, indexed in: http://blog.csdn.net/xiaowei_cqu/article/details/7747205
Lookup algorithmThe lookup algorithm looks for a particular target in the existing sequence (list), requiring that each record in the sequence must be associ
Objective
The previous sections are all about the basics, and we'll talk about index performance optimization in this section, when the large data processing first thought is the index, once encountered such a problem is a rush, all kinds of information, why not usually solid basic skills, we are simple, short content, in-depth understanding, rather than a problem to the box to die , immediately gives the solution, throws the question, then solves the problem, you get has not.
Bookmark
Resolve the SQL Server to focus on the removal (Bookmark Lookup, RID Lookup, Key Lookup), bookmarkrid
Preface
The previous sections focus on basic content. In this section, we will talk about index performance optimization. When processing big data, we first think of indexes. Once such a problem occurs, we are in a hurry, why are basic skills rarely used for vari
enrolled in September 08, graduated in July 12, and ended my happy and rich college life at the Software Academy. This series is a review of four-year professional course studies, indexed in: http://blog.csdn.net/xiaowei_cqu/article/details/7747205Find algorithmThe lookup algorithm finds a specific target in the existing sequence (list), requiring that each record in the sequence must be associated with a keyword (key) in order to be searched. The
, such as FTP or share folder
: E ftp://192.168.10.76/abc.txt
: E \qadrive\test\1.txt vim mode
Normal mode (press ESC or ctrl+[to enter) to display the file name or empty in the lower left cornerInsert mode (press I key to enter) the lower left corner shows –insert–Visual mode (do not know how to enter) the lower left corner shows the –visual– Insert command
I inserted before the current positionI inserts at the beginning of the current lineA inserts
C Language Search Algorithm order lookup, binary search (binary find), the recent test to use, the Internet also has a lot of examples, I think I wrote to understand some.
Sequential Lookup/*Sequential Lookup order lookups are the exact locations of the same number of given keywords in a known no (or ordered) Order queue. The principle is to have the keyword
http://blog.csdn.net/pipisorry/article/details/395084171. Replace VI with VIMVim is more powerful than VI, Vim is a superset of VI, and can solve many of the problems of habit, so it is necessary to use Vim to replace VI. Simply speaking, you can directly use the "Alias Vi=vim" command, but this can only be useful in this launch, the next time after the start, t
Recently summed up the principle of the major sequencing algorithm, and the implementation of it, thinking of the search algorithm summed up, today began to summarize the search algorithm.Needless to say, this article starts with the simplest search algorithm, and then complements the complex two-fork search Tree Lookup (BST) and B-tree, the + + tree lookup, and hash lookup.As the name implies, the search i
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.